var fs=require("fs");
var data="hello world 你好"
fs.writeFile("demo.txt",data,function(error){
   console.log("异步写入完成")
})
fs.writeFileSync("demo1.txt",data,"utf-8")
console.log("同步写入");